//
//  Extra2ViewController.h
//  ToucheTouche
//
//  Created by polytech polytech on 13/01/12.
//  Copyright (c) 2012 polytech. All rights reserved.
//

#import <UIKit/UIKit.h>

@class GameAventureViewController;

@protocol Extra2ViewControllerDelegate <NSObject>
@optional

@end

@interface Extra2ViewController : UIViewController <UIAlertViewDelegate> {
    NSInteger rand1;
    NSInteger rand2;
    NSInteger rand3;
    NSInteger rand4;
    NSInteger rand5;
    NSInteger score;
    NSTimer *chrono;
    NSInteger nbImages;
    NSTimer *timeImage;
    float temps;

    UIAlertView *alertLevel;
}

@property (nonatomic, retain) UIAlertView *alertLevel;    
    
@property (retain, nonatomic) IBOutlet UIButton *button11;
@property (retain, nonatomic) IBOutlet UIButton *button12;
@property (retain, nonatomic) IBOutlet UIButton *button13;
@property (retain, nonatomic) IBOutlet UIButton *button14;
@property (retain, nonatomic) IBOutlet UIButton *button15;
@property (retain, nonatomic) IBOutlet UIButton *button16;
@property (retain, nonatomic) IBOutlet UIButton *button17;
@property (retain, nonatomic) IBOutlet UIButton *button18;
@property (retain, nonatomic) IBOutlet UIButton *button21;
@property (retain, nonatomic) IBOutlet UIButton *button22;
@property (retain, nonatomic) IBOutlet UIButton *button23;
@property (retain, nonatomic) IBOutlet UIButton *button24;
@property (retain, nonatomic) IBOutlet UIButton *button25;
@property (retain, nonatomic) IBOutlet UIButton *button26;
@property (retain, nonatomic) IBOutlet UIButton *button27;
@property (retain, nonatomic) IBOutlet UIButton *button28;
@property (retain, nonatomic) IBOutlet UIButton *button31;
@property (retain, nonatomic) IBOutlet UIButton *button32;
@property (retain, nonatomic) IBOutlet UIButton *button33;
@property (retain, nonatomic) IBOutlet UIButton *button34;
@property (retain, nonatomic) IBOutlet UIButton *button35;
@property (retain, nonatomic) IBOutlet UIButton *button36;
@property (retain, nonatomic) IBOutlet UIButton *button37;
@property (retain, nonatomic) IBOutlet UIButton *button38;
@property (retain, nonatomic) IBOutlet UIButton *button41;
@property (retain, nonatomic) IBOutlet UIButton *button42;
@property (retain, nonatomic) IBOutlet UIButton *button43;
@property (retain, nonatomic) IBOutlet UIButton *button44;
@property (retain, nonatomic) IBOutlet UIButton *button45;
@property (retain, nonatomic) IBOutlet UIButton *button46;
@property (retain, nonatomic) IBOutlet UIButton *button47;
@property (retain, nonatomic) IBOutlet UIButton *button48;
@property (retain, nonatomic) IBOutlet UIImageView *imageView11;
@property (retain, nonatomic) IBOutlet UIImageView *imageView12;
@property (retain, nonatomic) IBOutlet UIImageView *imageView13;
@property (retain, nonatomic) IBOutlet UIImageView *imageView14;
@property (retain, nonatomic) IBOutlet UIImageView *imageView15;
@property (retain, nonatomic) IBOutlet UIImageView *imageView16;
@property (retain, nonatomic) IBOutlet UIImageView *imageView17;
@property (retain, nonatomic) IBOutlet UIImageView *imageView18;
@property (retain, nonatomic) IBOutlet UIImageView *imageView21;
@property (retain, nonatomic) IBOutlet UIImageView *imageView22;
@property (retain, nonatomic) IBOutlet UIImageView *imageView23;
@property (retain, nonatomic) IBOutlet UIImageView *imageView24;
@property (retain, nonatomic) IBOutlet UIImageView *imageView25;
@property (retain, nonatomic) IBOutlet UIImageView *imageView26;
@property (retain, nonatomic) IBOutlet UIImageView *imageView27;
@property (retain, nonatomic) IBOutlet UIImageView *imageView28;
@property (retain, nonatomic) IBOutlet UIImageView *imageView31;
@property (retain, nonatomic) IBOutlet UIImageView *imageView32;
@property (retain, nonatomic) IBOutlet UIImageView *imageView33;
@property (retain, nonatomic) IBOutlet UIImageView *imageView34;
@property (retain, nonatomic) IBOutlet UIImageView *imageView35;
@property (retain, nonatomic) IBOutlet UIImageView *imageView36;
@property (retain, nonatomic) IBOutlet UIImageView *imageView37;
@property (retain, nonatomic) IBOutlet UIImageView *imageView38;
@property (retain, nonatomic) IBOutlet UIImageView *imageView41;
@property (retain, nonatomic) IBOutlet UIImageView *imageView42;
@property (retain, nonatomic) IBOutlet UIImageView *imageView43;
@property (retain, nonatomic) IBOutlet UIImageView *imageView44;
@property (retain, nonatomic) IBOutlet UIImageView *imageView45;
@property (retain, nonatomic) IBOutlet UIImageView *imageView46;
@property (retain, nonatomic) IBOutlet UIImageView *imageView47;
@property (retain, nonatomic) IBOutlet UIImageView *imageView48;
@property (nonatomic, retain) IBOutletCollection(UIButton) NSArray *allButtons;
@property (nonatomic, retain) IBOutletCollection(UIImageView) NSArray *allImagesView;

@property (retain, nonatomic) IBOutlet UILabel *labelScore;
@property (retain, nonatomic) IBOutlet UILabel *labelTemps;
@property (nonatomic, assign) NSInteger score;
@property (nonatomic,assign) NSInteger nbImages;

@property (nonatomic,assign) float temps;
@property (nonatomic,assign) NSInteger rand1;
@property (nonatomic,assign) NSInteger rand2;
@property (nonatomic,assign) NSInteger rand3;
@property (nonatomic,assign) NSInteger rand4;
@property (nonatomic,assign) NSInteger rand5;

@property (nonatomic, retain) id <Extra2ViewControllerDelegate> delegate;
@property (nonatomic, retain) GameAventureViewController *gameAventureViewController;


- (IBAction)actionImage:(id)sender;
- (void)timer :(float) tmp;
- (void)stopTimer;
- (void) updateTimer: (NSTimer *) aTimer;
- (void)timerImage;
- (void)stopTimerImage;
- (void) updateTimerImage: (NSTimer *) aTimer;
- (void) changeImage;

@end
